package com.example.validdemo.model;

import com.example.validdemo.validator.Validator;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author Bx_Hu
 */
@Data
@Accessors(chain = true)
public class Permission {
    @NotBlank(message = "权限名称必填", groups = {Validator.Add.class})
    private String perName;

    @NotBlank(message = "权限类型必填", groups = {Validator.Add.class})
    private String perType;
}
